package com.xudu.utils;

/**
 * ClassName: Resoult
 * Description:
 *
 * @Author xudu
 * @Create 2024/4/8
 */

import lombok.Data;

/**
 * 返回前端页面的工具类
 */
@Data
public class Resoult {

    /**
     * 返回状态码
     */
    private int code;
    /**
     * 返回信息
     */
    private String message;
    /**
     * 返回数据
     */
    private Object data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Resoult(int code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
}
